package zz.app.ustbgsmanager.utils;

import android.content.Context;

/**
 * Created by zz on 2018/6/2 20:13.
 */
public class MetricsUtils {
    public static int dp2px(Context context,int dp){
        float density=context.getResources().getDisplayMetrics().density;
        return (int) (dp*density);
    }
}
